package chxy.sys.controller;


import chxy.sys.model.Birds;
import chxy.sys.model.NoteTaking;
import chxy.sys.service.BirdsService;
import chxy.sys.service.NoteTakingService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.catalina.mapper.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author SR.Y
 * @since 2021-03-10
 */
@RestController
@RequestMapping("/sys/noteTaking")
public class NoteTakingController {

    @Autowired
    private NoteTakingService ntService;

    @RequestMapping(value = "/list", method = RequestMethod.GET)
    @ResponseBody
    public List<NoteTaking> list() {

        System.out.println(ntService.selectall());
        return ntService.selectall();
    }




}

